package com.liugh.base;

import java.util.HashSet;
import java.util.Set;

/**
 * @author liugh
 * @since 2018-05-03
 */
public class Constant {

    public static Set<String>  METHOD_URL_SET = new HashSet<>();

    /**
     * 用户注册默认角色
     */
    public static final int DEFAULT_REGISTER_ROLE = 5;

    public static final int BUFFER_MULTIPLE = 10;

    //验证码过期时间
    public static final Long PASS_TIME =  50000 * 60 *1000L;

    //根菜单节点
    public static final String ROOT_MENU = "0";

    //菜单类型，1：菜单  2：按钮操作
    public static final int TYPE_MENU = 1;

    //菜单类型，1：菜单  2：按钮操作
    public static final int TYPE_BUTTON = 2;

    public static boolean isPass = false;

    //启用
    public static final int ENABLE = 1;
    //禁用
    public static final int DISABLE = 0;

    //fastDfs的IP+port
    public static final String FASTIP = "http://47.105.140.28:8888/";


    //在线判断是不是节假日
    public static final String dc = "http://tool.bitefu.net/jiari/?d=";

    public class RoleType {
        //超级管理员
        public static final String SYS_ASMIN_ROLE = "sysadmin";
        //管理员
        public static final String ADMIN = "admin";
        //普通用户
        public static final String USER = "user";
    }

    public class UserStatus {
        public static final int GENERAL = 1;
        public static final int DISABLED = 2;
        public static final int DELETE = 3;
    }


}

